<template>
	<view class="container">
		<image :src="imgsrc" mode="widthFix" style="width: 100%;" @click="preViewImage(imgsrc)"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgsrc:"http://localhost:7010/uploads/10001/qrcode.png",
			};
		},
		
		methods:{
			preViewImage(e){
				//console.log(e);
				var urls = [e];
				uni.previewImage({
					urls:urls,
					current:0,
				})
			}
		}
	
	}
</script>

<style lang="scss">
.container{
	background-color: #F7F7F7;
	height: 100vh;
}
</style>
